package com.dsg.kf.front.boot;

import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

import com.dsg.kf.front.context.FrontContext;

/**
 * 目前用不上
 * @author pacy.pan
 *
 */
public class WebSessionListener implements HttpSessionListener {

	@Override
	public void sessionCreated(HttpSessionEvent arg0) {
	}

	@Override
	public void sessionDestroyed(HttpSessionEvent arg0) {
		HttpSession session = arg0.getSession();
		if(session!=null){
			session.removeAttribute(FrontContext.USER_SESSION);
		}
	}


}